package com.wash.shoes.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wash.shoes.entity.FactoryPo;
import com.wash.shoes.resp.BindRecordResp;

@Mapper
public interface FactoryMapper extends BaseMapper<FactoryPo> {

    /**
     * 获取未绑定/已绑定的列表
     * 
     * @param action bind or unbind
     * @param userId 用户id
     * @param type UserBindTypeEnum bindType
     * @return
     */
    IPage<BindRecordResp> getUnBindList(IPage page, @Param("action") String action, @Param("userId") String userId,
        @Param("type") String type, @Param("status") String status, @Param("name") String name);
}
